package com.xr.org.emp;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.data.db.DBStatement;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.xr.common.*;
/**
 * empCareSingleAddViewModel
 */
public class empCareSingleAddViewModel extends DefaultViewModel {
  protected void initControls()
      throws Exception {
    super.initControls();
    // Add your code here
  }

  protected void doUpdateData(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
    // Add your code here
    super.doUpdateData(parameters, outParameters);
  }
  
  public void careCreate(ParameterSet parameters, ParameterSet outParameters)
  throws Exception {
	  DBStatement dbs = new DBStatement();
	  Dataset dsC = getDataset("datasetCare");
	  dbs.setSql("begin  pck_care.get1250("+dsC.getString("ONOFF_STATION_ID") + ","+dsC.getString("END_MONTH")+","+CommUtil.getEmployeeId()+"); end;");
	  dbs.execute();
  }
  public void careSave(ParameterSet parameters, ParameterSet outParameters)
  throws Exception {
	  DBStatement dbs = new DBStatement();
		Dataset dsEmp = getDataset("datasetOnOffList");
		//CommUtil.dbsUpdateData(dbs, dataset, table, keyField)
  }
}
